<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Drawing Functions</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#define-members">Macros</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Drawing Functions<div class="ingroups"><a class="el" href="../../d7/dbd/group__imgproc.html">Image Processing</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd2/classcv_1_1LineIterator.html">cv::LineIterator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Line iterator.  <a href="../../dc/dd2/classcv_1_1LineIterator.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga16fe14b01ea8dffdf2405dc5534e5f15"><td align="right" class="memItemLeft" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga16fe14b01ea8dffdf2405dc5534e5f15">CV_RGB</a>(r,  g,  b)   <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">cv::Scalar</a>((b), (g), (r), 0)</td></tr>
<tr class="separator:ga16fe14b01ea8dffdf2405dc5534e5f15"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga0f9314ea6e35f99bb23f29567fc16e11"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0f9314ea6e35f99bb23f29567fc16e11">cv::HersheyFonts</a> { <br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0f9314ea6e35f99bb23f29567fc16e11afff8b973668df2e4028dddc5274310c9">cv::FONT_HERSHEY_SIMPLEX</a> = 0, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0f9314ea6e35f99bb23f29567fc16e11a08cf3b0a37729fbb62a3007d499cbd8b">cv::FONT_HERSHEY_PLAIN</a> = 1, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0f9314ea6e35f99bb23f29567fc16e11ab307bdc73fdd06074acad940115bda7a">cv::FONT_HERSHEY_DUPLEX</a> = 2, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0f9314ea6e35f99bb23f29567fc16e11af7b1b25521fc9b5731a97cfd13460c2a">cv::FONT_HERSHEY_COMPLEX</a> = 3, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0f9314ea6e35f99bb23f29567fc16e11a2880034c653349b7f9fcc2bb60342fc6">cv::FONT_HERSHEY_TRIPLEX</a> = 4, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0f9314ea6e35f99bb23f29567fc16e11adfd28fc57520df956e00c7a26fb718ed">cv::FONT_HERSHEY_COMPLEX_SMALL</a> = 5, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0f9314ea6e35f99bb23f29567fc16e11a58de14ee43572b502c8cb71f788e9fdc">cv::FONT_HERSHEY_SCRIPT_SIMPLEX</a> = 6, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0f9314ea6e35f99bb23f29567fc16e11a8e7f6a22d4aec98c59375649eee1c696">cv::FONT_HERSHEY_SCRIPT_COMPLEX</a> = 7, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0f9314ea6e35f99bb23f29567fc16e11af0f7c8824fe42205076771a7b67661c2">cv::FONT_ITALIC</a> = 16
<br/>
 }</td></tr>
<tr class="separator:ga0f9314ea6e35f99bb23f29567fc16e11"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf076ef45de481ac96e0ab3dc2c29a777"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">cv::LineTypes</a> { <br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a89c5f6beef080e6df347167f85e07b9e">cv::FILLED</a> = -1, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a784ee59ec27d8bc88acddfb89c22f185">cv::LINE_4</a> = 4, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">cv::LINE_8</a> = 8, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a85fdabe5335c9e6656563dfd7c94fb4f">cv::LINE_AA</a> = 16
<br/>
 }</td></tr>
<tr class="separator:gaf076ef45de481ac96e0ab3dc2c29a777"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0ad87faebef1039ec957737ecc633b7b"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0ad87faebef1039ec957737ecc633b7b">cv::MarkerTypes</a> { <br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0ad87faebef1039ec957737ecc633b7baf28ad04b7620b2f232ab3c3faef142d5">cv::MARKER_CROSS</a> = 0, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0ad87faebef1039ec957737ecc633b7ba433d7189d8fe53873c929b917c903752">cv::MARKER_TILTED_CROSS</a> = 1, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0ad87faebef1039ec957737ecc633b7bad5b611078a497ff7278b27e7a85b059b">cv::MARKER_STAR</a> = 2, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0ad87faebef1039ec957737ecc633b7ba432cfe9d9aa8ff347afd5d11b6580a10">cv::MARKER_DIAMOND</a> = 3, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0ad87faebef1039ec957737ecc633b7ba17aaefd352d309fc4a17d06f64f7f56e">cv::MARKER_SQUARE</a> = 4, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0ad87faebef1039ec957737ecc633b7badc5b55da577d22ace3844809bc9a1049">cv::MARKER_TRIANGLE_UP</a> = 5, 
<br/>
  <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0ad87faebef1039ec957737ecc633b7ba8c45774007ca5883196614763b974577">cv::MARKER_TRIANGLE_DOWN</a> = 6
<br/>
 }</td></tr>
<tr class="separator:ga0ad87faebef1039ec957737ecc633b7b"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga0a165a3ca093fd488ac709fdf10c05b2"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0a165a3ca093fd488ac709fdf10c05b2">cv::arrowedLine</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> pt1, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> pt2, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int thickness=1, int line_type=8, int shift=0, double tipLength=0.1)</td></tr>
<tr class="memdesc:ga0a165a3ca093fd488ac709fdf10c05b2"><td class="mdescLeft"> </td><td class="mdescRight">Draws a arrow segment pointing from the first point to the second one.  <a href="../../d6/d6e/group__imgproc__draw.html#ga0a165a3ca093fd488ac709fdf10c05b2">More...</a><br/></td></tr>
<tr class="separator:ga0a165a3ca093fd488ac709fdf10c05b2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf10604b069374903dbd0f0488cb43670"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf10604b069374903dbd0f0488cb43670">cv::circle</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> center, int radius, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int thickness=1, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0)</td></tr>
<tr class="memdesc:gaf10604b069374903dbd0f0488cb43670"><td class="mdescLeft"> </td><td class="mdescRight">Draws a circle.  <a href="../../d6/d6e/group__imgproc__draw.html#gaf10604b069374903dbd0f0488cb43670">More...</a><br/></td></tr>
<tr class="separator:gaf10604b069374903dbd0f0488cb43670"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf483cb46ad6b049bc35ec67052ef1c2c"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf483cb46ad6b049bc35ec67052ef1c2c">cv::clipLine</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> imgSize, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;pt1, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;pt2)</td></tr>
<tr class="memdesc:gaf483cb46ad6b049bc35ec67052ef1c2c"><td class="mdescLeft"> </td><td class="mdescRight">Clips the line against the image rectangle.  <a href="../../d6/d6e/group__imgproc__draw.html#gaf483cb46ad6b049bc35ec67052ef1c2c">More...</a><br/></td></tr>
<tr class="separator:gaf483cb46ad6b049bc35ec67052ef1c2c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab156b52ae9174369cb035f1e9dfb29e1"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#gab156b52ae9174369cb035f1e9dfb29e1">cv::clipLine</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga153b6b90ce30f84239c9a39613e836d3">Size2l</a> imgSize, <a class="el" href="../../dc/d84/group__core__basic.html#ga2f6c21f7cbd3a08bfc6467fd20df2f7e">Point2l</a> &amp;pt1, <a class="el" href="../../dc/d84/group__core__basic.html#ga2f6c21f7cbd3a08bfc6467fd20df2f7e">Point2l</a> &amp;pt2)</td></tr>
<tr class="separator:gab156b52ae9174369cb035f1e9dfb29e1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga36117422ae2f891c7b03023261e25928"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga36117422ae2f891c7b03023261e25928">cv::clipLine</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> imgRect, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;pt1, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp;pt2)</td></tr>
<tr class="separator:ga36117422ae2f891c7b03023261e25928"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga746c0625f1781f1ffc9056259103edbc"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga746c0625f1781f1ffc9056259103edbc">cv::drawContours</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> image, <a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> contours, int contourIdx, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int thickness=1, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> hierarchy=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), int maxLevel=INT_MAX, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> offset=<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>())</td></tr>
<tr class="memdesc:ga746c0625f1781f1ffc9056259103edbc"><td class="mdescLeft"> </td><td class="mdescRight">Draws contours outlines or filled contours.  <a href="../../d6/d6e/group__imgproc__draw.html#ga746c0625f1781f1ffc9056259103edbc">More...</a><br/></td></tr>
<tr class="separator:ga746c0625f1781f1ffc9056259103edbc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga644c4a170d4799a56b29f864ce984b7e"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga644c4a170d4799a56b29f864ce984b7e">cv::drawMarker</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> position, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int markerType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0ad87faebef1039ec957737ecc633b7baf28ad04b7620b2f232ab3c3faef142d5">MARKER_CROSS</a>, int markerSize=20, int thickness=1, int line_type=8)</td></tr>
<tr class="memdesc:ga644c4a170d4799a56b29f864ce984b7e"><td class="mdescLeft"> </td><td class="mdescRight">Draws a marker on a predefined position in an image.  <a href="../../d6/d6e/group__imgproc__draw.html#ga644c4a170d4799a56b29f864ce984b7e">More...</a><br/></td></tr>
<tr class="separator:ga644c4a170d4799a56b29f864ce984b7e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga28b2267d35786f5f890ca167236cbc69"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga28b2267d35786f5f890ca167236cbc69">cv::ellipse</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> center, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> axes, double angle, double startAngle, double endAngle, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int thickness=1, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0)</td></tr>
<tr class="memdesc:ga28b2267d35786f5f890ca167236cbc69"><td class="mdescLeft"> </td><td class="mdescRight">Draws a simple or thick elliptic arc or fills an ellipse sector.  <a href="../../d6/d6e/group__imgproc__draw.html#ga28b2267d35786f5f890ca167236cbc69">More...</a><br/></td></tr>
<tr class="separator:ga28b2267d35786f5f890ca167236cbc69"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga57be400d8eff22fb946ae90c8e7441f9"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga57be400d8eff22fb946ae90c8e7441f9">cv::ellipse</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, const <a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html">RotatedRect</a> &amp;box, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int thickness=1, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>)</td></tr>
<tr class="separator:ga57be400d8eff22fb946ae90c8e7441f9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga727a72a3f6a625a2ae035f957c61051f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga727a72a3f6a625a2ae035f957c61051f">cv::ellipse2Poly</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> center, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> axes, int angle, int arcStart, int arcEnd, int delta, std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &gt; &amp;pts)</td></tr>
<tr class="memdesc:ga727a72a3f6a625a2ae035f957c61051f"><td class="mdescLeft"> </td><td class="mdescRight">Approximates an elliptic arc with a polyline.  <a href="../../d6/d6e/group__imgproc__draw.html#ga727a72a3f6a625a2ae035f957c61051f">More...</a><br/></td></tr>
<tr class="separator:ga727a72a3f6a625a2ae035f957c61051f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3d9494192ef3a9fd07f02e2377897faf"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga3d9494192ef3a9fd07f02e2377897faf">cv::ellipse2Poly</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga32986d8c6fd05949688352abd112509f">Point2d</a> center, <a class="el" href="../../dc/d84/group__core__basic.html#gaff96e5bec8019ca9917fd1e4c0cf8267">Size2d</a> axes, int angle, int arcStart, int arcEnd, int delta, std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga32986d8c6fd05949688352abd112509f">Point2d</a> &gt; &amp;pts)</td></tr>
<tr class="separator:ga3d9494192ef3a9fd07f02e2377897faf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3069baf93b51565e386c8e591f8418e6"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga3069baf93b51565e386c8e591f8418e6">cv::fillConvexPoly</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> *pts, int npts, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0)</td></tr>
<tr class="separator:ga3069baf93b51565e386c8e591f8418e6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9bb982be9d641dc51edd5e8ae3624e1f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga9bb982be9d641dc51edd5e8ae3624e1f">cv::fillConvexPoly</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> points, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0)</td></tr>
<tr class="memdesc:ga9bb982be9d641dc51edd5e8ae3624e1f"><td class="mdescLeft"> </td><td class="mdescRight">Fills a convex polygon.  <a href="../../d6/d6e/group__imgproc__draw.html#ga9bb982be9d641dc51edd5e8ae3624e1f">More...</a><br/></td></tr>
<tr class="separator:ga9bb982be9d641dc51edd5e8ae3624e1f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8c69b68fab5f25e2223b6496aa60dad5"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga8c69b68fab5f25e2223b6496aa60dad5">cv::fillPoly</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> **pts, const int *npts, int ncontours, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> offset=<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>())</td></tr>
<tr class="separator:ga8c69b68fab5f25e2223b6496aa60dad5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga311160e71d37e3b795324d097cb3a7dc"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga311160e71d37e3b795324d097cb3a7dc">cv::fillPoly</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> pts, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> offset=<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>())</td></tr>
<tr class="memdesc:ga311160e71d37e3b795324d097cb3a7dc"><td class="mdescLeft"> </td><td class="mdescRight">Fills the area bounded by one or more polygons.  <a href="../../d6/d6e/group__imgproc__draw.html#ga311160e71d37e3b795324d097cb3a7dc">More...</a><br/></td></tr>
<tr class="separator:ga311160e71d37e3b795324d097cb3a7dc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga442ff925c1a957794a1309e0ed3ba2c3"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga442ff925c1a957794a1309e0ed3ba2c3">cv::getFontScaleFromHeight</a> (const int fontFace, const int pixelHeight, const int thickness=1)</td></tr>
<tr class="memdesc:ga442ff925c1a957794a1309e0ed3ba2c3"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the font-specific size to use to achieve a given height in pixels.  <a href="../../d6/d6e/group__imgproc__draw.html#ga442ff925c1a957794a1309e0ed3ba2c3">More...</a><br/></td></tr>
<tr class="separator:ga442ff925c1a957794a1309e0ed3ba2c3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3d2abfcb995fd2db908c8288199dba82"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga3d2abfcb995fd2db908c8288199dba82">cv::getTextSize</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;text, int fontFace, double fontScale, int thickness, int *baseLine)</td></tr>
<tr class="memdesc:ga3d2abfcb995fd2db908c8288199dba82"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the width and height of a text string.  <a href="../../d6/d6e/group__imgproc__draw.html#ga3d2abfcb995fd2db908c8288199dba82">More...</a><br/></td></tr>
<tr class="separator:ga3d2abfcb995fd2db908c8288199dba82"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7078a9fae8c7e7d13d24dac2520ae4a2"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga7078a9fae8c7e7d13d24dac2520ae4a2">cv::line</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> pt1, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> pt2, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int thickness=1, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0)</td></tr>
<tr class="memdesc:ga7078a9fae8c7e7d13d24dac2520ae4a2"><td class="mdescLeft"> </td><td class="mdescRight">Draws a line segment connecting two points.  <a href="../../d6/d6e/group__imgproc__draw.html#ga7078a9fae8c7e7d13d24dac2520ae4a2">More...</a><br/></td></tr>
<tr class="separator:ga7078a9fae8c7e7d13d24dac2520ae4a2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1ea127ffbbb7e0bfc4fd6fd2eb64263c"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga1ea127ffbbb7e0bfc4fd6fd2eb64263c">cv::polylines</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> *const *pts, const int *npts, int ncontours, bool isClosed, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int thickness=1, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0)</td></tr>
<tr class="separator:ga1ea127ffbbb7e0bfc4fd6fd2eb64263c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa3c25f9fb764b6bef791bf034f6e26f5"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaa3c25f9fb764b6bef791bf034f6e26f5">cv::polylines</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> pts, bool isClosed, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int thickness=1, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0)</td></tr>
<tr class="memdesc:gaa3c25f9fb764b6bef791bf034f6e26f5"><td class="mdescLeft"> </td><td class="mdescRight">Draws several polygonal curves.  <a href="../../d6/d6e/group__imgproc__draw.html#gaa3c25f9fb764b6bef791bf034f6e26f5">More...</a><br/></td></tr>
<tr class="separator:gaa3c25f9fb764b6bef791bf034f6e26f5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5126f47f883d730f633d74f07456c576"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga5126f47f883d730f633d74f07456c576">cv::putText</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;text, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> org, int fontFace, double fontScale, <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> color, int thickness=1, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, bool bottomLeftOrigin=false)</td></tr>
<tr class="memdesc:ga5126f47f883d730f633d74f07456c576"><td class="mdescLeft"> </td><td class="mdescRight">Draws a text string.  <a href="../../d6/d6e/group__imgproc__draw.html#ga5126f47f883d730f633d74f07456c576">More...</a><br/></td></tr>
<tr class="separator:ga5126f47f883d730f633d74f07456c576"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga07d2f74cadcf8e305e810ce8eed13bc9"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga07d2f74cadcf8e305e810ce8eed13bc9">cv::rectangle</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> pt1, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> pt2, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int thickness=1, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0)</td></tr>
<tr class="memdesc:ga07d2f74cadcf8e305e810ce8eed13bc9"><td class="mdescLeft"> </td><td class="mdescRight">Draws a simple, thick, or filled up-right rectangle.  <a href="../../d6/d6e/group__imgproc__draw.html#ga07d2f74cadcf8e305e810ce8eed13bc9">More...</a><br/></td></tr>
<tr class="separator:ga07d2f74cadcf8e305e810ce8eed13bc9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac865734d137287c0afb7682ff7b3db23"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d6e/group__imgproc__draw.html#gac865734d137287c0afb7682ff7b3db23">cv::rectangle</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> img, <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> rec, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;color, int thickness=1, int lineType=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a>, int shift=0)</td></tr>
<tr class="separator:gac865734d137287c0afb7682ff7b3db23"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Drawing functions work with matrices/images of arbitrary depth. The boundaries of the shapes can be rendered with antialiasing (implemented only for 8-bit images for now). All the functions include the parameter color that uses an RGB value (that may be constructed with the Scalar constructor ) for color images and brightness for grayscale images. For color images, the channel ordering is normally <em>Blue, Green, Red</em>. This is what imshow, imread, and imwrite expect. So, if you form a color using the Scalar constructor, it should look like:</p>
<p class="formulaDsp">
\[\texttt{Scalar} (blue \_ component, green \_ component, red \_ component[, alpha \_ component])\]
</p>
<p>If you are using your own image rendering and I/O functions, you can use any channel ordering. The drawing functions process each channel independently and do not depend on the channel order or even on the used color space. The whole image can be converted from BGR to RGB or to a different color space using cvtColor .</p>
<p>If a drawn figure is partially or completely outside the image, the drawing functions clip it. Also, many drawing functions can handle pixel coordinates specified with sub-pixel accuracy. This means that the coordinates can be passed as fixed-point numbers encoded as integers. The number of fractional bits is specified by the shift parameter and the real point coordinates are calculated as \(\texttt{Point}(x,y)\rightarrow\texttt{Point2f}(x*2^{-shift},y*2^{-shift})\) . This feature is especially effective when rendering antialiased shapes.</p>
<dl class="section note"><dt>Note</dt><dd>The functions do not support alpha-transparency when the target image is 4-channel. In this case, the color[3] is simply copied to the repainted pixels. Thus, if you want to paint semi-transparent shapes, you can paint them in a separate buffer and then blend it with the main image. </dd></dl>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga16fe14b01ea8dffdf2405dc5534e5f15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga16fe14b01ea8dffdf2405dc5534e5f15">◆ </a></span>CV_RGB</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CV_RGB</td>
          <td>(</td>
          <td class="paramtype"> </td>
          <td class="paramname">r, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"> </td>
          <td class="paramname">g, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"> </td>
          <td class="paramname">b </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>   <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">cv::Scalar</a>((b), (g), (r), 0)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>OpenCV color channel order is BGR[A] </p>
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga0f9314ea6e35f99bb23f29567fc16e11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0f9314ea6e35f99bb23f29567fc16e11">◆ </a></span>HersheyFonts</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0f9314ea6e35f99bb23f29567fc16e11">cv::HersheyFonts</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Only a subset of Hershey fonts <a href="https://en.wikipedia.org/wiki/Hershey_fonts">https://en.wikipedia.org/wiki/Hershey_fonts</a> are supported </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga0f9314ea6e35f99bb23f29567fc16e11afff8b973668df2e4028dddc5274310c9"></a>FONT_HERSHEY_SIMPLEX <div class="python_language">Python: cv.FONT_HERSHEY_SIMPLEX</div></td><td class="fielddoc"><p>normal size sans-serif font </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0f9314ea6e35f99bb23f29567fc16e11a08cf3b0a37729fbb62a3007d499cbd8b"></a>FONT_HERSHEY_PLAIN <div class="python_language">Python: cv.FONT_HERSHEY_PLAIN</div></td><td class="fielddoc"><p>small size sans-serif font </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0f9314ea6e35f99bb23f29567fc16e11ab307bdc73fdd06074acad940115bda7a"></a>FONT_HERSHEY_DUPLEX <div class="python_language">Python: cv.FONT_HERSHEY_DUPLEX</div></td><td class="fielddoc"><p>normal size sans-serif font (more complex than FONT_HERSHEY_SIMPLEX) </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0f9314ea6e35f99bb23f29567fc16e11af7b1b25521fc9b5731a97cfd13460c2a"></a>FONT_HERSHEY_COMPLEX <div class="python_language">Python: cv.FONT_HERSHEY_COMPLEX</div></td><td class="fielddoc"><p>normal size serif font </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0f9314ea6e35f99bb23f29567fc16e11a2880034c653349b7f9fcc2bb60342fc6"></a>FONT_HERSHEY_TRIPLEX <div class="python_language">Python: cv.FONT_HERSHEY_TRIPLEX</div></td><td class="fielddoc"><p>normal size serif font (more complex than FONT_HERSHEY_COMPLEX) </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0f9314ea6e35f99bb23f29567fc16e11adfd28fc57520df956e00c7a26fb718ed"></a>FONT_HERSHEY_COMPLEX_SMALL <div class="python_language">Python: cv.FONT_HERSHEY_COMPLEX_SMALL</div></td><td class="fielddoc"><p>smaller version of FONT_HERSHEY_COMPLEX </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0f9314ea6e35f99bb23f29567fc16e11a58de14ee43572b502c8cb71f788e9fdc"></a>FONT_HERSHEY_SCRIPT_SIMPLEX <div class="python_language">Python: cv.FONT_HERSHEY_SCRIPT_SIMPLEX</div></td><td class="fielddoc"><p>hand-writing style font </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0f9314ea6e35f99bb23f29567fc16e11a8e7f6a22d4aec98c59375649eee1c696"></a>FONT_HERSHEY_SCRIPT_COMPLEX <div class="python_language">Python: cv.FONT_HERSHEY_SCRIPT_COMPLEX</div></td><td class="fielddoc"><p>more complex variant of FONT_HERSHEY_SCRIPT_SIMPLEX </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0f9314ea6e35f99bb23f29567fc16e11af0f7c8824fe42205076771a7b67661c2"></a>FONT_ITALIC <div class="python_language">Python: cv.FONT_ITALIC</div></td><td class="fielddoc"><p>flag for italic font </p>
</td></tr>
</table>
</div>
</div>
<a id="gaf076ef45de481ac96e0ab3dc2c29a777"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf076ef45de481ac96e0ab3dc2c29a777">◆ </a></span>LineTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">cv::LineTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>types of line </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaf076ef45de481ac96e0ab3dc2c29a777a89c5f6beef080e6df347167f85e07b9e"></a>FILLED <div class="python_language">Python: cv.FILLED</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggaf076ef45de481ac96e0ab3dc2c29a777a784ee59ec27d8bc88acddfb89c22f185"></a>LINE_4 <div class="python_language">Python: cv.LINE_4</div></td><td class="fielddoc"><p>4-connected line </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a"></a>LINE_8 <div class="python_language">Python: cv.LINE_8</div></td><td class="fielddoc"><p>8-connected line </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaf076ef45de481ac96e0ab3dc2c29a777a85fdabe5335c9e6656563dfd7c94fb4f"></a>LINE_AA <div class="python_language">Python: cv.LINE_AA</div></td><td class="fielddoc"><p>antialiased line </p>
</td></tr>
</table>
</div>
</div>
<a id="ga0ad87faebef1039ec957737ecc633b7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0ad87faebef1039ec957737ecc633b7b">◆ </a></span>MarkerTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0ad87faebef1039ec957737ecc633b7b">cv::MarkerTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Possible set of marker types used for the <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga644c4a170d4799a56b29f864ce984b7e" title="Draws a marker on a predefined position in an image. ">cv::drawMarker</a> function </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga0ad87faebef1039ec957737ecc633b7baf28ad04b7620b2f232ab3c3faef142d5"></a>MARKER_CROSS <div class="python_language">Python: cv.MARKER_CROSS</div></td><td class="fielddoc"><p>A crosshair marker shape. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0ad87faebef1039ec957737ecc633b7ba433d7189d8fe53873c929b917c903752"></a>MARKER_TILTED_CROSS <div class="python_language">Python: cv.MARKER_TILTED_CROSS</div></td><td class="fielddoc"><p>A 45 degree tilted crosshair marker shape. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0ad87faebef1039ec957737ecc633b7bad5b611078a497ff7278b27e7a85b059b"></a>MARKER_STAR <div class="python_language">Python: cv.MARKER_STAR</div></td><td class="fielddoc"><p>A star marker shape, combination of cross and tilted cross. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0ad87faebef1039ec957737ecc633b7ba432cfe9d9aa8ff347afd5d11b6580a10"></a>MARKER_DIAMOND <div class="python_language">Python: cv.MARKER_DIAMOND</div></td><td class="fielddoc"><p>A diamond marker shape. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0ad87faebef1039ec957737ecc633b7ba17aaefd352d309fc4a17d06f64f7f56e"></a>MARKER_SQUARE <div class="python_language">Python: cv.MARKER_SQUARE</div></td><td class="fielddoc"><p>A square marker shape. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0ad87faebef1039ec957737ecc633b7badc5b55da577d22ace3844809bc9a1049"></a>MARKER_TRIANGLE_UP <div class="python_language">Python: cv.MARKER_TRIANGLE_UP</div></td><td class="fielddoc"><p>An upwards pointing triangle marker shape. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0ad87faebef1039ec957737ecc633b7ba8c45774007ca5883196614763b974577"></a>MARKER_TRIANGLE_DOWN <div class="python_language">Python: cv.MARKER_TRIANGLE_DOWN</div></td><td class="fielddoc"><p>A downwards pointing triangle marker shape. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga0a165a3ca093fd488ac709fdf10c05b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0a165a3ca093fd488ac709fdf10c05b2">◆ </a></span>arrowedLine()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::arrowedLine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>pt1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>pt2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>line_type</em> = <code>8</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>tipLength</em> = <code>0.1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.arrowedLine(</td><td class="paramname">img, pt1, pt2, color[, thickness[, line_type[, shift[, tipLength]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Draws a arrow segment pointing from the first point to the second one. </p>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0a165a3ca093fd488ac709fdf10c05b2" title="Draws a arrow segment pointing from the first point to the second one. ">cv::arrowedLine</a> draws an arrow between pt1 and pt2 points in the image. See also <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga7078a9fae8c7e7d13d24dac2520ae4a2" title="Draws a line segment connecting two points. ">line</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image. </td></tr>
    <tr><td class="paramname">pt1</td><td>The point the arrow starts from. </td></tr>
    <tr><td class="paramname">pt2</td><td>The point the arrow points to. </td></tr>
    <tr><td class="paramname">color</td><td>Line color. </td></tr>
    <tr><td class="paramname">thickness</td><td>Line thickness. </td></tr>
    <tr><td class="paramname">line_type</td><td>Type of the line. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
    <tr><td class="paramname">shift</td><td>Number of fractional bits in the point coordinates. </td></tr>
    <tr><td class="paramname">tipLength</td><td>The length of the arrow tip in relation to the arrow length </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gaf10604b069374903dbd0f0488cb43670"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf10604b069374903dbd0f0488cb43670">◆ </a></span>circle()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::circle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.circle(</td><td class="paramname">img, center, radius, color[, thickness[, lineType[, shift]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Draws a circle. </p>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf10604b069374903dbd0f0488cb43670" title="Draws a circle. ">cv::circle</a> draws a simple or filled circle with a given center and radius. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image where the circle is drawn. </td></tr>
    <tr><td class="paramname">center</td><td>Center of the circle. </td></tr>
    <tr><td class="paramname">radius</td><td>Radius of the circle. </td></tr>
    <tr><td class="paramname">color</td><td>Circle color. </td></tr>
    <tr><td class="paramname">thickness</td><td>Thickness of the circle outline, if positive. Negative values, like <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a89c5f6beef080e6df347167f85e07b9e">FILLED</a>, mean that a filled circle is to be drawn. </td></tr>
    <tr><td class="paramname">lineType</td><td>Type of the circle boundary. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
    <tr><td class="paramname">shift</td><td>Number of fractional bits in the coordinates of the center and in the radius value. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d5/d04/samples_2cpp_2convexhull_8cpp-example.html#a14">samples/cpp/convexhull.cpp</a>, <a class="el" href="../../d2/dcf/samples_2cpp_2falsecolor_8cpp-example.html#a20">samples/cpp/falsecolor.cpp</a>, <a class="el" href="../../d9/dde/samples_2cpp_2kmeans_8cpp-example.html#a25">samples/cpp/kmeans.cpp</a>, <a class="el" href="../../d2/d1d/samples_2cpp_2lkdemo_8cpp-example.html#a26">samples/cpp/lkdemo.cpp</a>, <a class="el" href="../../df/dee/samples_2cpp_2minarea_8cpp-example.html#a18">samples/cpp/minarea.cpp</a>, <a class="el" href="../../d2/dda/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_1_8cpp-example.html#a14">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_1.cpp</a>, <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a21">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>, <a class="el" href="../../d1/de6/samples_2cpp_2tutorial_code_2ImgTrans_2houghcircles_8cpp-example.html#a14">samples/cpp/tutorial_code/ImgTrans/houghcircles.cpp</a>, and <a class="el" href="../../d7/d4f/samples_2dnn_2openpose_8cpp-example.html#a26">samples/dnn/openpose.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gaf483cb46ad6b049bc35ec67052ef1c2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf483cb46ad6b049bc35ec67052ef1c2c">◆ </a></span>clipLine() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::clipLine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>imgSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>pt1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>pt2</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, pt1, pt2</td><td>=</td><td>cv.clipLine(</td><td class="paramname">imgRect, pt1, pt2</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Clips the line against the image rectangle. </p>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf483cb46ad6b049bc35ec67052ef1c2c" title="Clips the line against the image rectangle. ">cv::clipLine</a> calculates a part of the line segment that is entirely within the specified rectangle. it returns false if the line segment is completely outside the rectangle. Otherwise, it returns true . </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">imgSize</td><td>Image size. The image rectangle is Rect(0, 0, imgSize.width, imgSize.height) . </td></tr>
    <tr><td class="paramname">pt1</td><td>First line point. </td></tr>
    <tr><td class="paramname">pt2</td><td>Second line point. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gab156b52ae9174369cb035f1e9dfb29e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab156b52ae9174369cb035f1e9dfb29e1">◆ </a></span>clipLine() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::clipLine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga153b6b90ce30f84239c9a39613e836d3">Size2l</a> </td>
          <td class="paramname"><em>imgSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga2f6c21f7cbd3a08bfc6467fd20df2f7e">Point2l</a> &amp; </td>
          <td class="paramname"><em>pt1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga2f6c21f7cbd3a08bfc6467fd20df2f7e">Point2l</a> &amp; </td>
          <td class="paramname"><em>pt2</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, pt1, pt2</td><td>=</td><td>cv.clipLine(</td><td class="paramname">imgRect, pt1, pt2</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">imgSize</td><td>Image size. The image rectangle is Rect(0, 0, imgSize.width, imgSize.height) . </td></tr>
    <tr><td class="paramname">pt1</td><td>First line point. </td></tr>
    <tr><td class="paramname">pt2</td><td>Second line point. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga36117422ae2f891c7b03023261e25928"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga36117422ae2f891c7b03023261e25928">◆ </a></span>clipLine() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::clipLine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> </td>
          <td class="paramname"><em>imgRect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>pt1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &amp; </td>
          <td class="paramname"><em>pt2</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, pt1, pt2</td><td>=</td><td>cv.clipLine(</td><td class="paramname">imgRect, pt1, pt2</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">imgRect</td><td>Image rectangle. </td></tr>
    <tr><td class="paramname">pt1</td><td>First line point. </td></tr>
    <tr><td class="paramname">pt2</td><td>Second line point. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga746c0625f1781f1ffc9056259103edbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga746c0625f1781f1ffc9056259103edbc">◆ </a></span>drawContours()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::drawContours </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>contours</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>contourIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>hierarchy</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>maxLevel</em> = <code>INT_MAX</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>offset</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>image</td><td>=</td><td>cv.drawContours(</td><td class="paramname">image, contours, contourIdx, color[, thickness[, lineType[, hierarchy[, maxLevel[, offset]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Draws contours outlines or filled contours. </p>
<p>The function draws contour outlines in the image if \(\texttt{thickness} \ge 0\) or fills the area bounded by the contours if \(\texttt{thickness}&lt;0\) . The example below shows how to retrieve connected components from the binary image and label them: : </p><div class="fragment"><div class="line"><span class="preprocessor">#include "<a class="code" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>"</span></div><div class="line"><span class="preprocessor">#include "<a class="code" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>"</span></div><div class="line"></div><div class="line"><span class="keyword">using namespace </span><a class="code" href="../../d2/d75/namespacecv.html">cv</a>;</div><div class="line"><span class="keyword">using namespace </span><a class="code" href="../../d8/dcc/namespacestd.html">std</a>;</div><div class="line"></div><div class="line"><span class="keywordtype">int</span> main( <span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv )</div><div class="line">{</div><div class="line">    <a class="code" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> src;</div><div class="line">    <span class="comment">// the first command-line parameter must be a filename of the binary</span></div><div class="line">    <span class="comment">// (black-n-white) image</span></div><div class="line">    <span class="keywordflow">if</span>( argc != 2 || !(src=<a class="code" href="../../d4/da8/group__imgcodecs.html#ga288b8b3da0892bd651fce07b3bbd3a56">imread</a>(argv[1], 0)).data)</div><div class="line">        <span class="keywordflow">return</span> -1;</div><div class="line"></div><div class="line">    <a class="code" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> dst = <a class="code" href="../../d3/d63/classcv_1_1Mat.html#a0b57b6a326c8876d944d188a46e0f556">Mat::zeros</a>(src.<a class="code" href="../../d3/d63/classcv_1_1Mat.html#abed816466c45234254d25bc59c31245e">rows</a>, src.<a class="code" href="../../d3/d63/classcv_1_1Mat.html#aa3e5a47585c9ef6a0842556739155e3e">cols</a>, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>);</div><div class="line"></div><div class="line">    src = src &gt; 1;</div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga5afdf8410934fd099df85c75b2e0888b">namedWindow</a>( <span class="stringliteral">"Source"</span>, 1 );</div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga453d42fe4cb60e5723281a89973ee563">imshow</a>( <span class="stringliteral">"Source"</span>, src );</div><div class="line"></div><div class="line">    vector&lt;vector&lt;Point&gt; &gt; contours;</div><div class="line">    vector&lt;Vec4i&gt; hierarchy;</div><div class="line"></div><div class="line">    <a class="code" href="../../d3/dc0/group__imgproc__shape.html#gadf1ad6a0b82947fa1fe3c3d497f260e0">findContours</a>( src, contours, hierarchy,</div><div class="line">        <a class="code" href="../../d3/dc0/group__imgproc__shape.html#gga819779b9857cc2f8601e6526a3a5bc71a7d1d4b509fb2a9a8dc2f960357748752">RETR_CCOMP</a>, <a class="code" href="../../d3/dc0/group__imgproc__shape.html#gga4303f45752694956374734a03c54d5ffa5f2883048e654999209f88ba04c302f5">CHAIN_APPROX_SIMPLE</a> );</div><div class="line"></div><div class="line">    <span class="comment">// iterate through all the top-level contours,</span></div><div class="line">    <span class="comment">// draw each connected component with its own random color</span></div><div class="line">    <span class="keywordtype">int</span> idx = 0;</div><div class="line">    <span class="keywordflow">for</span>( ; idx &gt;= 0; idx = hierarchy[idx][0] )</div><div class="line">    {</div><div class="line">        <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">Scalar</a> color( rand()&amp;255, rand()&amp;255, rand()&amp;255 );</div><div class="line">        <a class="code" href="../../d6/d6e/group__imgproc__draw.html#ga746c0625f1781f1ffc9056259103edbc">drawContours</a>( dst, contours, idx, color, <a class="code" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a89c5f6beef080e6df347167f85e07b9e">FILLED</a>, 8, hierarchy );</div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga5afdf8410934fd099df85c75b2e0888b">namedWindow</a>( <span class="stringliteral">"Components"</span>, 1 );</div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga453d42fe4cb60e5723281a89973ee563">imshow</a>( <span class="stringliteral">"Components"</span>, dst );</div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga5628525ad33f52eab17feebcfba38bd7">waitKey</a>(0);</div><div class="line">}</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>Destination image. </td></tr>
    <tr><td class="paramname">contours</td><td>All the input contours. Each contour is stored as a point vector. </td></tr>
    <tr><td class="paramname">contourIdx</td><td>Parameter indicating a contour to draw. If it is negative, all the contours are drawn. </td></tr>
    <tr><td class="paramname">color</td><td>Color of the contours. </td></tr>
    <tr><td class="paramname">thickness</td><td>Thickness of lines the contours are drawn with. If it is negative (for example, thickness=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a89c5f6beef080e6df347167f85e07b9e">FILLED</a> ), the contour interiors are drawn. </td></tr>
    <tr><td class="paramname">lineType</td><td>Line connectivity. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
    <tr><td class="paramname">hierarchy</td><td>Optional information about hierarchy. It is only needed if you want to draw only some of the contours (see maxLevel ). </td></tr>
    <tr><td class="paramname">maxLevel</td><td>Maximal level for drawn contours. If it is 0, only the specified contour is drawn. If it is 1, the function draws the contour(s) and all the nested contours. If it is 2, the function draws the contours, all the nested contours, all the nested-to-nested contours, and so on. This parameter is only taken into account when there is hierarchy available. </td></tr>
    <tr><td class="paramname">offset</td><td>Optional contour shift parameter. Shift all the drawn contours by the specified \(\texttt{offset}=(dx,dy)\) . </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>When thickness=<a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a89c5f6beef080e6df347167f85e07b9e">FILLED</a>, the function is designed to handle connected components with holes correctly even when no hierarchy date is provided. This is done by analyzing all the outlines together using even-odd rule. This may give incorrect results if you have a joint collection of separately retrieved contours. In order to solve this problem, you need to call <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga746c0625f1781f1ffc9056259103edbc" title="Draws contours outlines or filled contours. ">drawContours</a> separately for each sub-group of contours, or iterate over the collection using contourIdx parameter. </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../da/d32/samples_2cpp_2contours2_8cpp-example.html#a3">samples/cpp/contours2.cpp</a>, <a class="el" href="../../d5/de8/samples_2cpp_2segment_objects_8cpp-example.html#a12">samples/cpp/segment_objects.cpp</a>, <a class="el" href="../../da/d94/samples_2cpp_2tutorial_code_2ml_2introduction_to_pca_2introduction_to_pca_8cpp-example.html#a36">samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp</a>, and <a class="el" href="../../d4/d40/samples_2cpp_2watershed_8cpp-example.html#a31">samples/cpp/watershed.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga644c4a170d4799a56b29f864ce984b7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga644c4a170d4799a56b29f864ce984b7e">◆ </a></span>drawMarker()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::drawMarker </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>markerType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#gga0ad87faebef1039ec957737ecc633b7baf28ad04b7620b2f232ab3c3faef142d5">MARKER_CROSS</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>markerSize</em> = <code>20</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>line_type</em> = <code>8</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.drawMarker(</td><td class="paramname">img, position, color[, markerType[, markerSize[, thickness[, line_type]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Draws a marker on a predefined position in an image. </p>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga644c4a170d4799a56b29f864ce984b7e" title="Draws a marker on a predefined position in an image. ">cv::drawMarker</a> draws a marker on a given position in the image. For the moment several marker types are supported, see <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0ad87faebef1039ec957737ecc633b7b">MarkerTypes</a> for more information.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image. </td></tr>
    <tr><td class="paramname">position</td><td>The point where the crosshair is positioned. </td></tr>
    <tr><td class="paramname">color</td><td>Line color. </td></tr>
    <tr><td class="paramname">markerType</td><td>The specific type of marker you want to use, see <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0ad87faebef1039ec957737ecc633b7b">MarkerTypes</a> </td></tr>
    <tr><td class="paramname">thickness</td><td>Line thickness. </td></tr>
    <tr><td class="paramname">line_type</td><td>Type of the line, See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
    <tr><td class="paramname">markerSize</td><td>The length of the marker axis [default = 20 pixels] </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d4/d35/samples_2cpp_2polar_transforms_8cpp-example.html#a32">samples/cpp/polar_transforms.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga28b2267d35786f5f890ca167236cbc69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga28b2267d35786f5f890ca167236cbc69">◆ </a></span>ellipse() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ellipse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>axes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>startAngle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>endAngle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.ellipse(</td><td class="paramname">img, center, axes, angle, startAngle, endAngle, color[, thickness[, lineType[, shift]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.ellipse(</td><td class="paramname">img, box, color[, thickness[, lineType]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Draws a simple or thick elliptic arc or fills an ellipse sector. </p>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga28b2267d35786f5f890ca167236cbc69" title="Draws a simple or thick elliptic arc or fills an ellipse sector. ">cv::ellipse</a> with more parameters draws an ellipse outline, a filled ellipse, an elliptic arc, or a filled ellipse sector. The drawing code uses general parametric form. A piecewise-linear curve is used to approximate the elliptic arc boundary. If you need more control of the ellipse rendering, you can retrieve the curve using <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga727a72a3f6a625a2ae035f957c61051f" title="Approximates an elliptic arc with a polyline. ">ellipse2Poly</a> and then render it with <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga1ea127ffbbb7e0bfc4fd6fd2eb64263c">polylines</a> or fill it with <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga8c69b68fab5f25e2223b6496aa60dad5">fillPoly</a>. If you use the first variant of the function and want to draw the whole ellipse, not an arc, pass <code>startAngle=0</code> and <code>endAngle=360</code>. If <code>startAngle</code> is greater than <code>endAngle</code>, they are swapped. The figure below explains the meaning of the parameters to draw the blue arc.</p>
<div class="image">
<object data="../../ellipse.svg" type="image/svg+xml">ellipse.svg</object>
<div class="caption">
Parameters of Elliptic Arc</div></div>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image. </td></tr>
    <tr><td class="paramname">center</td><td>Center of the ellipse. </td></tr>
    <tr><td class="paramname">axes</td><td>Half of the size of the ellipse main axes. </td></tr>
    <tr><td class="paramname">angle</td><td>Ellipse rotation angle in degrees. </td></tr>
    <tr><td class="paramname">startAngle</td><td>Starting angle of the elliptic arc in degrees. </td></tr>
    <tr><td class="paramname">endAngle</td><td>Ending angle of the elliptic arc in degrees. </td></tr>
    <tr><td class="paramname">color</td><td>Ellipse color. </td></tr>
    <tr><td class="paramname">thickness</td><td>Thickness of the ellipse arc outline, if positive. Otherwise, this indicates that a filled ellipse sector is to be drawn. </td></tr>
    <tr><td class="paramname">lineType</td><td>Type of the ellipse boundary. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
    <tr><td class="paramname">shift</td><td>Number of fractional bits in the coordinates of the center and values of axes. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d1/d9e/fld_lines_8cpp-example.html#a23">fld_lines.cpp</a>, <a class="el" href="../../d6/d7f/samples_2cpp_2camshiftdemo_8cpp-example.html#a60">samples/cpp/camshiftdemo.cpp</a>, <a class="el" href="../../da/d32/samples_2cpp_2contours2_8cpp-example.html#a18">samples/cpp/contours2.cpp</a>, <a class="el" href="../../d2/dcf/samples_2cpp_2falsecolor_8cpp-example.html#a23">samples/cpp/falsecolor.cpp</a>, <a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#a22">samples/cpp/fitellipse.cpp</a>, <a class="el" href="../../d2/dda/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_1_8cpp-example.html#a12">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_1.cpp</a>, and <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a18">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga57be400d8eff22fb946ae90c8e7441f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga57be400d8eff22fb946ae90c8e7441f9">◆ </a></span>ellipse() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ellipse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html">RotatedRect</a> &amp; </td>
          <td class="paramname"><em>box</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.ellipse(</td><td class="paramname">img, center, axes, angle, startAngle, endAngle, color[, thickness[, lineType[, shift]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.ellipse(</td><td class="paramname">img, box, color[, thickness[, lineType]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image. </td></tr>
    <tr><td class="paramname">box</td><td>Alternative ellipse representation via <a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html" title="The class represents rotated (i.e. not up-right) rectangles on a plane. ">RotatedRect</a>. This means that the function draws an ellipse inscribed in the rotated rectangle. </td></tr>
    <tr><td class="paramname">color</td><td>Ellipse color. </td></tr>
    <tr><td class="paramname">thickness</td><td>Thickness of the ellipse arc outline, if positive. Otherwise, this indicates that a filled ellipse sector is to be drawn. </td></tr>
    <tr><td class="paramname">lineType</td><td>Type of the ellipse boundary. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga727a72a3f6a625a2ae035f957c61051f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga727a72a3f6a625a2ae035f957c61051f">◆ </a></span>ellipse2Poly() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ellipse2Poly </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>axes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>arcStart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>arcEnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> &gt; &amp; </td>
          <td class="paramname"><em>pts</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>pts</td><td>=</td><td>cv.ellipse2Poly(</td><td class="paramname">center, axes, angle, arcStart, arcEnd, delta</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Approximates an elliptic arc with a polyline. </p>
<p>The function ellipse2Poly computes the vertices of a polyline that approximates the specified elliptic arc. It is used by <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga28b2267d35786f5f890ca167236cbc69" title="Draws a simple or thick elliptic arc or fills an ellipse sector. ">ellipse</a>. If <code>arcStart</code> is greater than <code>arcEnd</code>, they are swapped.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">center</td><td>Center of the arc. </td></tr>
    <tr><td class="paramname">axes</td><td>Half of the size of the ellipse main axes. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga28b2267d35786f5f890ca167236cbc69" title="Draws a simple or thick elliptic arc or fills an ellipse sector. ">ellipse</a> for details. </td></tr>
    <tr><td class="paramname">angle</td><td>Rotation angle of the ellipse in degrees. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga28b2267d35786f5f890ca167236cbc69" title="Draws a simple or thick elliptic arc or fills an ellipse sector. ">ellipse</a> for details. </td></tr>
    <tr><td class="paramname">arcStart</td><td>Starting angle of the elliptic arc in degrees. </td></tr>
    <tr><td class="paramname">arcEnd</td><td>Ending angle of the elliptic arc in degrees. </td></tr>
    <tr><td class="paramname">delta</td><td>Angle between the subsequent polyline vertices. It defines the approximation accuracy. </td></tr>
    <tr><td class="paramname">pts</td><td>Output vector of polyline vertices. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga3d9494192ef3a9fd07f02e2377897faf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3d9494192ef3a9fd07f02e2377897faf">◆ </a></span>ellipse2Poly() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ellipse2Poly </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga32986d8c6fd05949688352abd112509f">Point2d</a> </td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaff96e5bec8019ca9917fd1e4c0cf8267">Size2d</a> </td>
          <td class="paramname"><em>axes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>arcStart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>arcEnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga32986d8c6fd05949688352abd112509f">Point2d</a> &gt; &amp; </td>
          <td class="paramname"><em>pts</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>pts</td><td>=</td><td>cv.ellipse2Poly(</td><td class="paramname">center, axes, angle, arcStart, arcEnd, delta</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">center</td><td>Center of the arc. </td></tr>
    <tr><td class="paramname">axes</td><td>Half of the size of the ellipse main axes. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga28b2267d35786f5f890ca167236cbc69" title="Draws a simple or thick elliptic arc or fills an ellipse sector. ">ellipse</a> for details. </td></tr>
    <tr><td class="paramname">angle</td><td>Rotation angle of the ellipse in degrees. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga28b2267d35786f5f890ca167236cbc69" title="Draws a simple or thick elliptic arc or fills an ellipse sector. ">ellipse</a> for details. </td></tr>
    <tr><td class="paramname">arcStart</td><td>Starting angle of the elliptic arc in degrees. </td></tr>
    <tr><td class="paramname">arcEnd</td><td>Ending angle of the elliptic arc in degrees. </td></tr>
    <tr><td class="paramname">delta</td><td>Angle between the subsequent polyline vertices. It defines the approximation accuracy. </td></tr>
    <tr><td class="paramname">pts</td><td>Output vector of polyline vertices. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga3069baf93b51565e386c8e591f8418e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3069baf93b51565e386c8e591f8418e6">◆ </a></span>fillConvexPoly() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::fillConvexPoly </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> * </td>
          <td class="paramname"><em>pts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>npts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.fillConvexPoly(</td><td class="paramname">img, points, color[, lineType[, shift]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a id="ga9bb982be9d641dc51edd5e8ae3624e1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9bb982be9d641dc51edd5e8ae3624e1f">◆ </a></span>fillConvexPoly() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::fillConvexPoly </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.fillConvexPoly(</td><td class="paramname">img, points, color[, lineType[, shift]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Fills a convex polygon. </p>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga3069baf93b51565e386c8e591f8418e6">cv::fillConvexPoly</a> draws a filled convex polygon. This function is much faster than the function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga8c69b68fab5f25e2223b6496aa60dad5">fillPoly</a> . It can fill not only convex polygons but any monotonic polygon without self-intersections, that is, a polygon whose contour intersects every horizontal line (scan line) twice at the most (though, its top-most and/or the bottom edge could be horizontal).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image. </td></tr>
    <tr><td class="paramname">points</td><td>Polygon vertices. </td></tr>
    <tr><td class="paramname">color</td><td>Polygon color. </td></tr>
    <tr><td class="paramname">lineType</td><td>Type of the polygon boundaries. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
    <tr><td class="paramname">shift</td><td>Number of fractional bits in the vertex coordinates. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga8c69b68fab5f25e2223b6496aa60dad5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8c69b68fab5f25e2223b6496aa60dad5">◆ </a></span>fillPoly() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::fillPoly </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> ** </td>
          <td class="paramname"><em>pts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int * </td>
          <td class="paramname"><em>npts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ncontours</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>offset</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.fillPoly(</td><td class="paramname">img, pts, color[, lineType[, shift[, offset]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../db/d75/samples_2cpp_2create_mask_8cpp-example.html#a17">samples/cpp/create_mask.cpp</a>, <a class="el" href="../../df/da5/samples_2cpp_2intersectExample_8cpp-example.html#a11">samples/cpp/intersectExample.cpp</a>, <a class="el" href="../../d2/dda/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_1_8cpp-example.html#a15">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_1.cpp</a>, and <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a20">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga311160e71d37e3b795324d097cb3a7dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga311160e71d37e3b795324d097cb3a7dc">◆ </a></span>fillPoly() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::fillPoly </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>pts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>offset</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.fillPoly(</td><td class="paramname">img, pts, color[, lineType[, shift[, offset]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Fills the area bounded by one or more polygons. </p>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga8c69b68fab5f25e2223b6496aa60dad5">cv::fillPoly</a> fills an area bounded by several polygonal contours. The function can fill complex areas, for example, areas with holes, contours with self-intersections (some of their parts), and so forth.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image. </td></tr>
    <tr><td class="paramname">pts</td><td>Array of polygons where each polygon is represented as an array of points. </td></tr>
    <tr><td class="paramname">color</td><td>Polygon color. </td></tr>
    <tr><td class="paramname">lineType</td><td>Type of the polygon boundaries. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
    <tr><td class="paramname">shift</td><td>Number of fractional bits in the vertex coordinates. </td></tr>
    <tr><td class="paramname">offset</td><td>Optional offset of all points of the contours. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga442ff925c1a957794a1309e0ed3ba2c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga442ff925c1a957794a1309e0ed3ba2c3">◆ </a></span>getFontScaleFromHeight()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::getFontScaleFromHeight </td>
          <td>(</td>
          <td class="paramtype">const int </td>
          <td class="paramname"><em>fontFace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int </td>
          <td class="paramname"><em>pixelHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.getFontScaleFromHeight(</td><td class="paramname">fontFace, pixelHeight[, thickness]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Calculates the font-specific size to use to achieve a given height in pixels. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fontFace</td><td>Font to use, see <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0f9314ea6e35f99bb23f29567fc16e11">cv::HersheyFonts</a>. </td></tr>
    <tr><td class="paramname">pixelHeight</td><td>Pixel height to compute the fontScale for </td></tr>
    <tr><td class="paramname">thickness</td><td>Thickness of lines used to render the text.See putText for details. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The fontSize to use for <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga5126f47f883d730f633d74f07456c576" title="Draws a text string. ">cv::putText</a></dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga5126f47f883d730f633d74f07456c576" title="Draws a text string. ">cv::putText</a> </dd></dl>
</div>
</div>
<a id="ga3d2abfcb995fd2db908c8288199dba82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3d2abfcb995fd2db908c8288199dba82">◆ </a></span>getTextSize()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> cv::getTextSize </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fontFace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fontScale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int * </td>
          <td class="paramname"><em>baseLine</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, baseLine</td><td>=</td><td>cv.getTextSize(</td><td class="paramname">text, fontFace, fontScale, thickness</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Calculates the width and height of a text string. </p>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga3d2abfcb995fd2db908c8288199dba82" title="Calculates the width and height of a text string. ">cv::getTextSize</a> calculates and returns the size of a box that contains the specified text. That is, the following code renders some text, the tight box surrounding it, and the baseline: : </p><div class="fragment"><div class="line"><a class="code" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> text = <span class="stringliteral">"Funny text inside the box"</span>;</div><div class="line"><span class="keywordtype">int</span> fontFace = <a class="code" href="../../d6/d6e/group__imgproc__draw.html#gga0f9314ea6e35f99bb23f29567fc16e11a58de14ee43572b502c8cb71f788e9fdc">FONT_HERSHEY_SCRIPT_SIMPLEX</a>;</div><div class="line"><span class="keywordtype">double</span> fontScale = 2;</div><div class="line"><span class="keywordtype">int</span> thickness = 3;</div><div class="line"></div><div class="line">Mat img(600, 800, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html#ac1509a4b8454fe7fe29db069e13a2e6f">Scalar::all</a>(0));</div><div class="line"></div><div class="line"><span class="keywordtype">int</span> baseline=0;</div><div class="line"><a class="code" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> textSize = <a class="code" href="../../d6/d6e/group__imgproc__draw.html#ga3d2abfcb995fd2db908c8288199dba82">getTextSize</a>(text, fontFace,</div><div class="line">                            fontScale, thickness, &amp;baseline);</div><div class="line">baseline += thickness;</div><div class="line"></div><div class="line"><span class="comment">// center the text</span></div><div class="line"><a class="code" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> textOrg((img.cols - textSize.width)/2,</div><div class="line">              (img.rows + textSize.height)/2);</div><div class="line"></div><div class="line"><span class="comment">// draw the box</span></div><div class="line"><a class="code" href="../../d6/d6e/group__imgproc__draw.html#ga07d2f74cadcf8e305e810ce8eed13bc9">rectangle</a>(img, textOrg + <a class="code" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(0, baseline),</div><div class="line">          textOrg + <a class="code" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(textSize.width, -textSize.height),</div><div class="line">          <a class="code" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0,0,255));</div><div class="line"><span class="comment">// ... and the baseline first</span></div><div class="line"><a class="code" href="../../d6/d6e/group__imgproc__draw.html#ga7078a9fae8c7e7d13d24dac2520ae4a2">line</a>(img, textOrg + <a class="code" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(0, thickness),</div><div class="line">     textOrg + <a class="code" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(textSize.width, thickness),</div><div class="line">     <a class="code" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0, 0, 255));</div><div class="line"></div><div class="line"><span class="comment">// then put the text itself</span></div><div class="line"><a class="code" href="../../d6/d6e/group__imgproc__draw.html#ga5126f47f883d730f633d74f07456c576">putText</a>(img, text, textOrg, fontFace, fontScale,</div><div class="line">        <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html#ac1509a4b8454fe7fe29db069e13a2e6f">Scalar::all</a>(255), thickness, 8);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">text</td><td>Input text string. </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">fontFace</td><td>Font to use, see <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0f9314ea6e35f99bb23f29567fc16e11">HersheyFonts</a>. </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">fontScale</td><td>Font scale factor that is multiplied by the font-specific base size. </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">thickness</td><td>Thickness of lines used to render the text. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga5126f47f883d730f633d74f07456c576" title="Draws a text string. ">putText</a> for details. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">baseLine</td><td>y-coordinate of the baseline relative to the bottom-most text point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The size of a box that contains the specified text.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga5126f47f883d730f633d74f07456c576" title="Draws a text string. ">putText</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#a28">samples/cpp/fitellipse.cpp</a>, <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a23">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>, and <a class="el" href="../../d4/db9/samples_2dnn_2object_detection_8cpp-example.html#a52">samples/dnn/object_detection.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga7078a9fae8c7e7d13d24dac2520ae4a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7078a9fae8c7e7d13d24dac2520ae4a2">◆ </a></span>line()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::line </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>pt1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>pt2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.line(</td><td class="paramname">img, pt1, pt2, color[, thickness[, lineType[, shift]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Draws a line segment connecting two points. </p>
<p>The function line draws the line segment between pt1 and pt2 points in the image. The line is clipped by the image boundaries. For non-antialiased lines with integer coordinates, the 8-connected or 4-connected Bresenham algorithm is used. Thick lines are drawn with rounding endings. Antialiased lines are drawn using Gaussian filtering.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image. </td></tr>
    <tr><td class="paramname">pt1</td><td>First point of the line segment. </td></tr>
    <tr><td class="paramname">pt2</td><td>Second point of the line segment. </td></tr>
    <tr><td class="paramname">color</td><td>Line color. </td></tr>
    <tr><td class="paramname">thickness</td><td>Line thickness. </td></tr>
    <tr><td class="paramname">lineType</td><td>Type of the line. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a>. </td></tr>
    <tr><td class="paramname">shift</td><td>Number of fractional bits in the point coordinates. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../da/d32/samples_2cpp_2contours2_8cpp-example.html#a13">samples/cpp/contours2.cpp</a>, <a class="el" href="../../d5/d04/samples_2cpp_2convexhull_8cpp-example.html#a18">samples/cpp/convexhull.cpp</a>, <a class="el" href="../../db/d75/samples_2cpp_2create_mask_8cpp-example.html#a8">samples/cpp/create_mask.cpp</a>, <a class="el" href="../../d2/dcf/samples_2cpp_2falsecolor_8cpp-example.html#a12">samples/cpp/falsecolor.cpp</a>, <a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#a24">samples/cpp/fitellipse.cpp</a>, <a class="el" href="../../dd/d93/samples_2cpp_2image_alignment_8cpp-example.html#a15">samples/cpp/image_alignment.cpp</a>, <a class="el" href="../../de/d70/samples_2cpp_2kalman_8cpp-example.html#a25">samples/cpp/kalman.cpp</a>, <a class="el" href="../../df/dee/samples_2cpp_2minarea_8cpp-example.html#a22">samples/cpp/minarea.cpp</a>, <a class="el" href="../../d3/db0/samples_2cpp_2pca_8cpp-example.html#a2">samples/cpp/pca.cpp</a>, <a class="el" href="../../d2/dda/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_1_8cpp-example.html#a16">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_1.cpp</a>, <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a12">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>, <a class="el" href="../../d5/df9/samples_2cpp_2tutorial_code_2ImgTrans_2houghlines_8cpp-example.html#a17">samples/cpp/tutorial_code/ImgTrans/houghlines.cpp</a>, <a class="el" href="../../da/d94/samples_2cpp_2tutorial_code_2ml_2introduction_to_pca_2introduction_to_pca_8cpp-example.html#a11">samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp</a>, <a class="el" href="../../de/dd4/samples_2cpp_2warpPerspective_demo_8cpp-example.html#a18">samples/cpp/warpPerspective_demo.cpp</a>, <a class="el" href="../../d4/d40/samples_2cpp_2watershed_8cpp-example.html#a10">samples/cpp/watershed.cpp</a>, <a class="el" href="../../d9/d8d/samples_2dnn_2classification_8cpp-example.html#a12">samples/dnn/classification.cpp</a>, <a class="el" href="../../d4/db9/samples_2dnn_2object_detection_8cpp-example.html#a13">samples/dnn/object_detection.cpp</a>, <a class="el" href="../../d7/d4f/samples_2dnn_2openpose_8cpp-example.html#a25">samples/dnn/openpose.cpp</a>, and <a class="el" href="../../d4/d88/samples_2dnn_2segmentation_8cpp-example.html#a8">samples/dnn/segmentation.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga1ea127ffbbb7e0bfc4fd6fd2eb64263c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1ea127ffbbb7e0bfc4fd6fd2eb64263c">◆ </a></span>polylines() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::polylines </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> *const * </td>
          <td class="paramname"><em>pts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int * </td>
          <td class="paramname"><em>npts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ncontours</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>isClosed</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.polylines(</td><td class="paramname">img, pts, isClosed, color[, thickness[, lineType[, shift]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d1/d9e/fld_lines_8cpp-example.html#a19">fld_lines.cpp</a>, <a class="el" href="../../db/d75/samples_2cpp_2create_mask_8cpp-example.html#a12">samples/cpp/create_mask.cpp</a>, <a class="el" href="../../df/da5/samples_2cpp_2intersectExample_8cpp-example.html#a12">samples/cpp/intersectExample.cpp</a>, <a class="el" href="../../db/d00/samples_2cpp_2squares_8cpp-example.html#a29">samples/cpp/squares.cpp</a>, <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a19">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>, <a class="el" href="../../db/da4/samples_2dnn_2text_detection_8cpp-example.html#a19">samples/dnn/text_detection.cpp</a>, and <a class="el" href="../../de/dc0/samples_2tapi_2squares_8cpp-example.html#a30">samples/tapi/squares.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gaa3c25f9fb764b6bef791bf034f6e26f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa3c25f9fb764b6bef791bf034f6e26f5">◆ </a></span>polylines() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::polylines </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>pts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>isClosed</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.polylines(</td><td class="paramname">img, pts, isClosed, color[, thickness[, lineType[, shift]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Draws several polygonal curves. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image. </td></tr>
    <tr><td class="paramname">pts</td><td>Array of polygonal curves. </td></tr>
    <tr><td class="paramname">isClosed</td><td>Flag indicating whether the drawn polylines are closed or not. If they are closed, the function draws a line from the last vertex of each curve to its first vertex. </td></tr>
    <tr><td class="paramname">color</td><td>Polyline color. </td></tr>
    <tr><td class="paramname">thickness</td><td>Thickness of the polyline edges. </td></tr>
    <tr><td class="paramname">lineType</td><td>Type of the line segments. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
    <tr><td class="paramname">shift</td><td>Number of fractional bits in the vertex coordinates.</td></tr>
  </table>
  </dd>
</dl>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga1ea127ffbbb7e0bfc4fd6fd2eb64263c">cv::polylines</a> draws one or more polygonal curves. </p>
</div>
</div>
<a id="ga5126f47f883d730f633d74f07456c576"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5126f47f883d730f633d74f07456c576">◆ </a></span>putText()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::putText </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>org</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fontFace</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fontScale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>bottomLeftOrigin</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.putText(</td><td class="paramname">img, text, org, fontFace, fontScale, color[, thickness[, lineType[, bottomLeftOrigin]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Draws a text string. </p>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga5126f47f883d730f633d74f07456c576" title="Draws a text string. ">cv::putText</a> renders the specified text string in the image. Symbols that cannot be rendered using the specified font are replaced by question marks. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga3d2abfcb995fd2db908c8288199dba82" title="Calculates the width and height of a text string. ">getTextSize</a> for a text rendering code example.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image. </td></tr>
    <tr><td class="paramname">text</td><td>Text string to be drawn. </td></tr>
    <tr><td class="paramname">org</td><td>Bottom-left corner of the text string in the image. </td></tr>
    <tr><td class="paramname">fontFace</td><td>Font type, see <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga0f9314ea6e35f99bb23f29567fc16e11">HersheyFonts</a>. </td></tr>
    <tr><td class="paramname">fontScale</td><td>Font scale factor that is multiplied by the font-specific base size. </td></tr>
    <tr><td class="paramname">color</td><td>Text color. </td></tr>
    <tr><td class="paramname">thickness</td><td>Thickness of the lines used to draw a text. </td></tr>
    <tr><td class="paramname">lineType</td><td>Line type. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
    <tr><td class="paramname">bottomLeftOrigin</td><td>When true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d2/dcf/samples_2cpp_2falsecolor_8cpp-example.html#a6">samples/cpp/falsecolor.cpp</a>, <a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#a33">samples/cpp/fitellipse.cpp</a>, <a class="el" href="../../df/da5/samples_2cpp_2intersectExample_8cpp-example.html#a13">samples/cpp/intersectExample.cpp</a>, <a class="el" href="../../df/d54/samples_2cpp_2peopledetect_8cpp-example.html#a27">samples/cpp/peopledetect.cpp</a>, <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a22">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>, <a class="el" href="../../d3/d8f/samples_2cpp_2tutorial_code_2ImgProc_2Smoothing_2Smoothing_8cpp-example.html#a16">samples/cpp/tutorial_code/ImgProc/Smoothing/Smoothing.cpp</a>, <a class="el" href="../../de/dd4/samples_2cpp_2warpPerspective_demo_8cpp-example.html#a19">samples/cpp/warpPerspective_demo.cpp</a>, <a class="el" href="../../d9/d8d/samples_2dnn_2classification_8cpp-example.html#a32">samples/dnn/classification.cpp</a>, <a class="el" href="../../d4/db9/samples_2dnn_2object_detection_8cpp-example.html#a25">samples/dnn/object_detection.cpp</a>, <a class="el" href="../../d4/d88/samples_2dnn_2segmentation_8cpp-example.html#a24">samples/dnn/segmentation.cpp</a>, <a class="el" href="../../db/da4/samples_2dnn_2text_detection_8cpp-example.html#a17">samples/dnn/text_detection.cpp</a>, and <a class="el" href="../../d8/d61/samples_2tapi_2hog_8cpp-example.html#a33">samples/tapi/hog.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga07d2f74cadcf8e305e810ce8eed13bc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga07d2f74cadcf8e305e810ce8eed13bc9">◆ </a></span>rectangle() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::rectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>pt1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>pt2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.rectangle(</td><td class="paramname">img, pt1, pt2, color[, thickness[, lineType[, shift]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.rectangle(</td><td class="paramname">img, rec, color[, thickness[, lineType[, shift]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>Draws a simple, thick, or filled up-right rectangle. </p>
<p>The function <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ga07d2f74cadcf8e305e810ce8eed13bc9" title="Draws a simple, thick, or filled up-right rectangle. ">cv::rectangle</a> draws a rectangle outline or a filled rectangle whose two opposite corners are pt1 and pt2.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Image. </td></tr>
    <tr><td class="paramname">pt1</td><td>Vertex of the rectangle. </td></tr>
    <tr><td class="paramname">pt2</td><td>Vertex of the rectangle opposite to pt1 . </td></tr>
    <tr><td class="paramname">color</td><td>Rectangle color or brightness (grayscale image). </td></tr>
    <tr><td class="paramname">thickness</td><td>Thickness of lines that make up the rectangle. Negative values, like <a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a89c5f6beef080e6df347167f85e07b9e">FILLED</a>, mean that the function has to draw a filled rectangle. </td></tr>
    <tr><td class="paramname">lineType</td><td>Type of the line. See <a class="el" href="../../d6/d6e/group__imgproc__draw.html#gaf076ef45de481ac96e0ab3dc2c29a777">LineTypes</a> </td></tr>
    <tr><td class="paramname">shift</td><td>Number of fractional bits in the point coordinates. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d6/d7f/samples_2cpp_2camshiftdemo_8cpp-example.html#a50">samples/cpp/camshiftdemo.cpp</a>, <a class="el" href="../../da/d53/samples_2cpp_2demhist_8cpp-example.html#a13">samples/cpp/demhist.cpp</a>, <a class="el" href="../../d4/d26/samples_2cpp_2facedetect_8cpp-example.html#a45">samples/cpp/facedetect.cpp</a>, <a class="el" href="../../d2/dcf/samples_2cpp_2falsecolor_8cpp-example.html#a22">samples/cpp/falsecolor.cpp</a>, <a class="el" href="../../d8/d34/samples_2cpp_2grabcut_8cpp-example.html#a21">samples/cpp/grabcut.cpp</a>, <a class="el" href="../../df/da5/samples_2cpp_2intersectExample_8cpp-example.html#a1">samples/cpp/intersectExample.cpp</a>, <a class="el" href="../../df/d54/samples_2cpp_2peopledetect_8cpp-example.html#a32">samples/cpp/peopledetect.cpp</a>, <a class="el" href="../../d0/df8/samples_2cpp_2train_HOG_8cpp-example.html#a46">samples/cpp/train_HOG.cpp</a>, <a class="el" href="../../d8/ded/samples_2cpp_2tutorial_code_2Histograms_Matching_2MatchTemplate_Demo_8cpp-example.html#a22">samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp</a>, <a class="el" href="../../d2/dda/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_1_8cpp-example.html#a5">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_1.cpp</a>, <a class="el" href="../../de/d06/samples_2cpp_2tutorial_code_2ImgProc_2basic_drawing_2Drawing_2_8cpp-example.html#a13">samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp</a>, <a class="el" href="../../d4/db9/samples_2dnn_2object_detection_8cpp-example.html#a51">samples/dnn/object_detection.cpp</a>, and <a class="el" href="../../d8/d61/samples_2tapi_2hog_8cpp-example.html#a31">samples/tapi/hog.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gac865734d137287c0afb7682ff7b3db23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac865734d137287c0afb7682ff7b3db23">◆ </a></span>rectangle() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::rectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> </td>
          <td class="paramname"><em>rec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>thickness</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>lineType</em> = <code><a class="el" href="../../d6/d6e/group__imgproc__draw.html#ggaf076ef45de481ac96e0ab3dc2c29a777a5d32eda7017db273a37f158e5b51442a">LINE_8</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>shift</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.rectangle(</td><td class="paramname">img, pt1, pt2, color[, thickness[, lineType[, shift]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>img</td><td>=</td><td>cv.rectangle(</td><td class="paramname">img, rec, color[, thickness[, lineType[, shift]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d1/d4f/imgproc_2include_2opencv2_2imgproc_8hpp.html">opencv2/imgproc.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.</p>
<p>use <code>rec</code> parameter as alternative specification of the drawn rectangle: <code>r.tl() and r.br()-Point(1,1)</code> are opposite corners </p>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:40 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
